package com.movie.service;

import com.movie.entity.Rating;
import java.util.List;

public interface RatingService {

    int addOrUpdateRating(Rating rating);

    Rating getUserRating(Integer userId, Integer movieId);

    List<Rating> getRatingsByMovie(Integer movieId);

    List<Rating> getRatingsByUser(Integer userId); // ✅ 新增
}

